<?php

namespace app\admin\validate\chat;

use ShidianUtil\Thinkphp\Validate\BaseValidate;

/**
 * Class ConsultingHidden
 * @package app\admin\validate\chat
 * @link https://www.kancloud.cn/manual/thinkphp6_0/1037623
 * @see \app\admin\controller\chat\ConsultingHidden
 */
class ConsultingHidden extends BaseValidate
{

    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'id'	=> 'isId',
		'categoryId'	=> 'integer|egt:0|max:11',
		'memberId'	=> 'integer|egt:0|max:11',
		'lawyerId'	=> 'integer|egt:0|max:11',
		'robotId'	=> 'integer|egt:0|max:11',
		'no'	=> 'scalar|max:32',
		'initMatchType'	=> 'integer|egt:0|max:3',
		'matchType'	=> 'integer|egt:0|max:3',
		'consultingType'	=> 'integer|egt:0|max:3',
		'consultingServerId'	=> 'integer|egt:0|max:11',
		'lawsuitId'	=> 'integer|egt:0|max:11',
		'lawyerMoney'	=> 'numeric|egt:0',
		'pagePath'	=> 'scalar|max:255',
		'status'	=> 'integer|max:3',
		'isEnd'	=> 'integer|egt:0|max:3',
		'isHidden'	=> 'integer|egt:0|max:3',
		'lastActiveTime'	=> 'likeId',
		'isAsked'	=> 'integer|egt:0|max:1',
		'ask'	=> 'scalar|max:2000',
		'questionId'	=> 'integer|egt:0|max:11',
		'questionsNum'	=> 'integer|egt:0|max:10',
		'isChatFreely'	=> 'integer|max:1',
		'isChatFreelyEndTime'	=> 'likeId',
		'freeNum'	=> 'integer|egt:0|max:3',
		'questionsNumRemind'	=> 'integer|egt:0|max:3',
		'isAnswered'	=> 'integer|egt:0|max:3',
		'rushStatus'	=> 'integer|egt:0|max:3',
		'rushTime'	=> 'likeId',
		'rushExpTime'	=> 'likeId',
		'responseTimeLength'	=> 'integer|max:11',
		'rushTimes'	=> 'integer|egt:0|max:10',
		'isComment'	=> 'integer|max:1',
		'commentLevel'	=> 'integer|max:11',
		'comment'	=> 'scalar|max:600',
		'lastChatTime'	=> 'likeId',
		'memberLastTime'	=> 'likeId',
		'lawyerLastTime'	=> 'likeId',
		'memberHiddenTime'	=> 'likeId',
		'lawyerHiddenTime'	=> 'likeId',
		'provinceId'	=> 'integer|egt:0|max:11',
		'cityId'	=> 'integer|egt:0|max:11',
		'updated'	=> 'integer|egt:0|max:11',
		'created'	=> 'integer|egt:0|max:11',
        'page'      => 'integer|egt:0|max:11',
        'page_size' => 'integer|egt:0|max:11',
    ];

    protected $field = [
        'id'	=> 'id',
		'categoryId'	=> 'categoryId',
		'memberId'	=> 'memberId',
		'lawyerId'	=> 'lawyerId',
		'robotId'	=> 'robotId',
		'no'	=> 'no',
		'initMatchType'	=> 'initMatchType',
		'matchType'	=> 'matchType',
		'consultingType'	=> 'consultingType',
		'consultingServerId'	=> 'consultingServerId',
		'lawsuitId'	=> 'lawsuitId',
		'lawyerMoney'	=> 'lawyerMoney',
		'pagePath'	=> 'pagePath',
		'status'	=> 'status',
		'isEnd'	=> 'isEnd',
		'isHidden'	=> 'isHidden',
		'lastActiveTime'	=> 'lastActiveTime',
		'isAsked'	=> 'isAsked',
		'ask'	=> 'ask',
		'questionId'	=> 'questionId',
		'questionsNum'	=> 'questionsNum',
		'isChatFreely'	=> 'isChatFreely',
		'isChatFreelyEndTime'	=> 'isChatFreelyEndTime',
		'freeNum'	=> 'freeNum',
		'questionsNumRemind'	=> 'questionsNumRemind',
		'isAnswered'	=> 'isAnswered',
		'rushStatus'	=> 'rushStatus',
		'rushTime'	=> 'rushTime',
		'rushExpTime'	=> 'rushExpTime',
		'responseTimeLength'	=> 'responseTimeLength',
		'rushTimes'	=> 'rushTimes',
		'isComment'	=> 'isComment',
		'commentLevel'	=> 'commentLevel',
		'comment'	=> 'comment',
		'lastChatTime'	=> 'lastChatTime',
		'memberLastTime'	=> 'memberLastTime',
		'lawyerLastTime'	=> 'lawyerLastTime',
		'memberHiddenTime'	=> 'memberHiddenTime',
		'lawyerHiddenTime'	=> 'lawyerHiddenTime',
		'provinceId'	=> 'provinceId',
		'cityId'	=> 'cityId',
		'updated'	=> 'updated',
		'created'	=> 'created',
        'page'      => '分页页数',
        'page_size' => '分页大小',
    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名' =>  '错误信息'
     *
     * @var array
     */
    protected $message = [
        'id.require'	=> '缺少:attribute',
		'id.isId'	=> '请设置正确的:attribute',
		'categoryId.require'	=> '请输入:attribute',
		'categoryId.integer' => ':attribute应该是整数',
		'categoryId.egt'	=> ':attribute应该大于等于:rule',
		'categoryId.max'	=> ':attribute长度不能超过:rule位',
		'memberId.require'	=> '请输入:attribute',
		'memberId.integer' => ':attribute应该是整数',
		'memberId.egt'	=> ':attribute应该大于等于:rule',
		'memberId.max'	=> ':attribute长度不能超过:rule位',
		'lawyerId.require'	=> '请输入:attribute',
		'lawyerId.integer' => ':attribute应该是整数',
		'lawyerId.egt'	=> ':attribute应该大于等于:rule',
		'lawyerId.max'	=> ':attribute长度不能超过:rule位',
		'robotId.require'	=> '请输入:attribute',
		'robotId.integer' => ':attribute应该是整数',
		'robotId.egt'	=> ':attribute应该大于等于:rule',
		'robotId.max'	=> ':attribute长度不能超过:rule位',
		'no.require'	=> '请输入:attribute',
		'no.scalar' => ':attribute应该是字符串',
		'no.max'	=> ':attribute长度不能超过:rule位',
		'initMatchType.require'	=> '请输入:attribute',
		'initMatchType.integer' => ':attribute应该是整数',
		'initMatchType.egt'	=> ':attribute应该大于等于:rule',
		'initMatchType.max'	=> ':attribute长度不能超过:rule位',
		'matchType.require'	=> '请输入:attribute',
		'matchType.integer' => ':attribute应该是整数',
		'matchType.egt'	=> ':attribute应该大于等于:rule',
		'matchType.max'	=> ':attribute长度不能超过:rule位',
		'consultingType.require'	=> '请输入:attribute',
		'consultingType.integer' => ':attribute应该是整数',
		'consultingType.egt'	=> ':attribute应该大于等于:rule',
		'consultingType.max'	=> ':attribute长度不能超过:rule位',
		'consultingServerId.require'	=> '请输入:attribute',
		'consultingServerId.integer' => ':attribute应该是整数',
		'consultingServerId.egt'	=> ':attribute应该大于等于:rule',
		'consultingServerId.max'	=> ':attribute长度不能超过:rule位',
		'lawsuitId.require'	=> '请输入:attribute',
		'lawsuitId.integer' => ':attribute应该是整数',
		'lawsuitId.egt'	=> ':attribute应该大于等于:rule',
		'lawsuitId.max'	=> ':attribute长度不能超过:rule位',
		'lawyerMoney.require'	=> '请输入:attribute',
		'lawyerMoney.numeric' => ':attribute应该是数字',
		'lawyerMoney.egt'	=> ':attribute应该大于等于:rule',
		'pagePath.require'	=> '请输入:attribute',
		'pagePath.scalar' => ':attribute应该是字符串',
		'pagePath.max'	=> ':attribute长度不能超过:rule位',
		'status.require'	=> '请输入:attribute',
		'status.integer' => ':attribute应该是整数',
		'status.max'	=> ':attribute长度不能超过:rule位',
		'isEnd.require'	=> '请输入:attribute',
		'isEnd.integer' => ':attribute应该是整数',
		'isEnd.egt'	=> ':attribute应该大于等于:rule',
		'isEnd.max'	=> ':attribute长度不能超过:rule位',
		'isHidden.require'	=> '请输入:attribute',
		'isHidden.integer' => ':attribute应该是整数',
		'isHidden.egt'	=> ':attribute应该大于等于:rule',
		'isHidden.max'	=> ':attribute长度不能超过:rule位',
		'lastActiveTime.require'	=> '请选择:attribute',
		'lastActiveTime.isId'	=> '请选择正确的:attribute',
		'isAsked.require'	=> '请输入:attribute',
		'isAsked.integer' => ':attribute应该是整数',
		'isAsked.egt'	=> ':attribute应该大于等于:rule',
		'isAsked.max'	=> ':attribute长度不能超过:rule位',
		'ask.require'	=> '请输入:attribute',
		'ask.scalar' => ':attribute应该是字符串',
		'ask.max'	=> ':attribute长度不能超过:rule位',
		'questionId.require'	=> '请输入:attribute',
		'questionId.integer' => ':attribute应该是整数',
		'questionId.egt'	=> ':attribute应该大于等于:rule',
		'questionId.max'	=> ':attribute长度不能超过:rule位',
		'questionsNum.require'	=> '请输入:attribute',
		'questionsNum.integer' => ':attribute应该是整数',
		'questionsNum.egt'	=> ':attribute应该大于等于:rule',
		'questionsNum.max'	=> ':attribute长度不能超过:rule位',
		'isChatFreely.require'	=> '请输入:attribute',
		'isChatFreely.integer' => ':attribute应该是整数',
		'isChatFreely.max'	=> ':attribute长度不能超过:rule位',
		'isChatFreelyEndTime.require'	=> '请选择:attribute',
		'isChatFreelyEndTime.isId'	=> '请选择正确的:attribute',
		'freeNum.require'	=> '请输入:attribute',
		'freeNum.integer' => ':attribute应该是整数',
		'freeNum.egt'	=> ':attribute应该大于等于:rule',
		'freeNum.max'	=> ':attribute长度不能超过:rule位',
		'questionsNumRemind.require'	=> '请输入:attribute',
		'questionsNumRemind.integer' => ':attribute应该是整数',
		'questionsNumRemind.egt'	=> ':attribute应该大于等于:rule',
		'questionsNumRemind.max'	=> ':attribute长度不能超过:rule位',
		'isAnswered.require'	=> '请输入:attribute',
		'isAnswered.integer' => ':attribute应该是整数',
		'isAnswered.egt'	=> ':attribute应该大于等于:rule',
		'isAnswered.max'	=> ':attribute长度不能超过:rule位',
		'rushStatus.require'	=> '请输入:attribute',
		'rushStatus.integer' => ':attribute应该是整数',
		'rushStatus.egt'	=> ':attribute应该大于等于:rule',
		'rushStatus.max'	=> ':attribute长度不能超过:rule位',
		'rushTime.require'	=> '请选择:attribute',
		'rushTime.isId'	=> '请选择正确的:attribute',
		'rushExpTime.require'	=> '请选择:attribute',
		'rushExpTime.isId'	=> '请选择正确的:attribute',
		'responseTimeLength.require'	=> '请输入:attribute',
		'responseTimeLength.integer' => ':attribute应该是整数',
		'responseTimeLength.max'	=> ':attribute长度不能超过:rule位',
		'rushTimes.require'	=> '请输入:attribute',
		'rushTimes.integer' => ':attribute应该是整数',
		'rushTimes.egt'	=> ':attribute应该大于等于:rule',
		'rushTimes.max'	=> ':attribute长度不能超过:rule位',
		'isComment.require'	=> '请输入:attribute',
		'isComment.integer' => ':attribute应该是整数',
		'isComment.max'	=> ':attribute长度不能超过:rule位',
		'commentLevel.require'	=> '请输入:attribute',
		'commentLevel.integer' => ':attribute应该是整数',
		'commentLevel.max'	=> ':attribute长度不能超过:rule位',
		'comment.require'	=> '请输入:attribute',
		'comment.scalar' => ':attribute应该是字符串',
		'comment.max'	=> ':attribute长度不能超过:rule位',
		'lastChatTime.require'	=> '请选择:attribute',
		'lastChatTime.isId'	=> '请选择正确的:attribute',
		'memberLastTime.require'	=> '请选择:attribute',
		'memberLastTime.isId'	=> '请选择正确的:attribute',
		'lawyerLastTime.require'	=> '请选择:attribute',
		'lawyerLastTime.isId'	=> '请选择正确的:attribute',
		'memberHiddenTime.require'	=> '请选择:attribute',
		'memberHiddenTime.isId'	=> '请选择正确的:attribute',
		'lawyerHiddenTime.require'	=> '请选择:attribute',
		'lawyerHiddenTime.isId'	=> '请选择正确的:attribute',
		'provinceId.require'	=> '请输入:attribute',
		'provinceId.integer' => ':attribute应该是整数',
		'provinceId.egt'	=> ':attribute应该大于等于:rule',
		'provinceId.max'	=> ':attribute长度不能超过:rule位',
		'cityId.require'	=> '请输入:attribute',
		'cityId.integer' => ':attribute应该是整数',
		'cityId.egt'	=> ':attribute应该大于等于:rule',
		'cityId.max'	=> ':attribute长度不能超过:rule位',
		'updated.require'	=> '请输入:attribute',
		'updated.integer' => ':attribute应该是整数',
		'updated.egt'	=> ':attribute应该大于等于:rule',
		'updated.max'	=> ':attribute长度不能超过:rule位',
		'created.require'	=> '请输入:attribute',
		'created.integer' => ':attribute应该是整数',
		'created.egt'	=> ':attribute应该大于等于:rule',
		'created.max'	=> ':attribute长度不能超过:rule位',
        'page.require'      => '请输入:attribute',
        'page.integer'      => ':attribute应该是整数',
        'page.egt'          => ':attribute应该大于等于:rule',
        'page.max'          => ':attribute长度不能超过:rule位',
        'page_size.require' => '请输入:attribute',
        'page_size.integer' => ':attribute应该是整数',
        'page_size.egt'     => ':attribute应该大于等于:rule',
        'page_size.max'     => ':attribute长度不能超过:rule位',
    ];

    protected $scene = [
        'delete' => ['id' => 'require'],
        'index'  => ['page', 'page_size'],
        'read'   => ['id' => 'require'],
        'save'   => ['categoryId', 'memberId', 'lawyerId', 'robotId', 'no', 'initMatchType', 'matchType', 'consultingType', 'consultingServerId', 'lawsuitId', 'lawyerMoney', 'pagePath', 'status', 'isEnd', 'isHidden', 'lastActiveTime', 'isAsked', 'ask', 'questionId', 'questionsNum', 'isChatFreely', 'isChatFreelyEndTime', 'freeNum', 'questionsNumRemind', 'isAnswered', 'rushStatus', 'rushTime', 'rushExpTime', 'responseTimeLength', 'rushTimes', 'isComment', 'commentLevel', 'comment', 'lastChatTime', 'memberLastTime', 'lawyerLastTime', 'memberHiddenTime', 'lawyerHiddenTime', 'provinceId', 'cityId', 'updated', 'created'],
    ];

}
